package com.boot.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.IdentityDialect;
import tk.mybatis.mapper.code.Style;
import util.FD;

@Entity
@Table(name = "t_course")
@NameStyle(Style.normal)
public class Course {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, insertable = false)
	@KeySql(dialect = IdentityDialect.SQLSERVER, useGeneratedKeys = true)
	private Integer	id;
	@FD("科目")
	private String	typesel;
	@FD("课程名称") 
	private String	courseName;
	@FD("图片")
	private String	imgFile;
	@FD("视频")
	private String	videoFile;
	@FD("更新日期")
	private String	addDate;
	@FD("摘要")
	@Column(length = 5000)
	private String	absContent;
	@FD("课程概要")
	@Column(length = 5000)
	private String	courseContent;
	@FD("参考资料")
	@Column(length = 5000)
	private String	cankaoContent;

	@FD("播放量")
	@Column(updatable = false)
	private Integer	viewCount;

	public Integer getId() {
		return id;
	}

	public String getTypesel() {
		return typesel;
	}

	public String getCourseName() {
		return courseName;
	}

	public String getImgFile() {
		return imgFile;
	}

	public String getVideoFile() {
		return videoFile;
	}

	public String getAddDate() {
		return addDate;
	}

	public String getAbsContent() {
		return absContent;
	}

	public String getCourseContent() {
		return courseContent;
	}

	public String getCankaoContent() {
		return cankaoContent;
	}

	public Integer getViewCount() {
		return viewCount;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setTypesel(String typesel) {
		this.typesel = typesel;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public void setImgFile(String imgFile) {
		this.imgFile = imgFile;
	}

	public void setVideoFile(String videoFile) {
		this.videoFile = videoFile;
	}

	public void setAddDate(String addDate) {
		this.addDate = addDate;
	}

	public void setAbsContent(String absContent) {
		this.absContent = absContent;
	}

	public void setCourseContent(String courseContent) {
		this.courseContent = courseContent;
	}

	public void setCankaoContent(String cankaoContent) {
		this.cankaoContent = cankaoContent;
	}

	public void setViewCount(Integer viewCount) {
		this.viewCount = viewCount;
	}

}
